import QtQuick 2.15
import QtQuick.Window 2.15
import QtQuick.Controls 2.4

Window {
    width: 640
    height: 480
    visible: true
    title: qsTr("Qt Quick Canvas画布--测试程序")
    Row {
        anchors.centerIn: parent
        spacing:20
      CProgresBars{
          id:progress1
         value:0.13
         linewidth:15
         size:100
         primarycolor:"black"
        secondarycolor:"purple"

         Text{
             text:parseInt(progress1.value*100)+"%"//显示百分比
             anchors.centerIn: parent
             font.pointSize: 10

         }

      }
      CProgresBars{
          id:progress2
         value:0.50
         linewidth:15
         size:100
         primarycolor:"black"
        secondarycolor:"purple"

         Text{
             text:parseInt(progress2.value*100)+"%"//显示百分比
             anchors.centerIn: parent
             font.pointSize: 10

         }

      }


    }
}
